<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Home extends FrontEnd_Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('Home_m');

    }

    function index(){
    $this->_data['page_title']="Europadubb";
     $this->_data['page_description']="Europadubb";
     $this->_data['page']="home";
     $this->_data['query']=$this->Home_m->get_content('home');
   $this->display_view('home/index');
    }
     function about_us(){
  $this->_data['page_title']="Europadubb";
   $this->_data['page_description']="Europadubb";
    $this->_data['page']="about_us";
     $this->_data['query']=$this->Home_m->get_content('about');
   $this->display_view('home/about_us');
    }
    function services(){

      $this->_data['page_title']="Europadubb";
      $this->_data['page_description']="Europadubb";
      $this->_data['page']="services";
    $this->_data['query']=$this->Home_m->get_content('service');

   $this->display_view('home/services');
    }
     function clients(){
         $this->_data['page_title']="Europadubb";
         $this->_data['page_description']="Europadubb";
         $this->_data['page']="clients";
       $total=$this->db->count_all('client');
    $this->_data['total']= $total;
   $this->_data['total1']=floor(($total+1)/2);
    $this->_data['img_client']=$this->Home_m->get_img_client();
   $this->_data['query']=$this->Home_m->get_client();
   $this->display_view('home/clients');
    }
     function our_studios(){
      $this->_data['page_title']="Europadubb";
      $this->_data['page_description']="Europadubb";
       $this->_data['page']="our_studios";
    $this->_data['query']=$this->Home_m->get_studio();
   $this->display_view('home/our_studios');
    }
     function contact(){
       $this->_data['page_title']="Europadubb";
      $this->_data['page_description']="Europadubb";
      $this->_data['page']="contact";
   $this->_data['info']=$this->Home_m->get_contact_info();
   $this->_data['query']=$this->Home_m->get_contact();
   $this->display_view('home/contact');
    }
     function links(){
       $this->_data['page_title']="Europadubb";
      $this->_data['page_description']="Europadubb";
     $this->_data['page']="links";
      $this->_data['event']=$this->Home_m->get_event_link();
     $this->_data['partner']=$this->Home_m->get_partner_link();
     $this->_data['description']=$this->Home_m->get_description_link();
   $this->display_view('home/links');
    }
}
?>
